package com.xr.common.constant;

public class ConstantUtils {
    // JSAPI下单
    public final static String JSAPI_URL = "https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi";
    // 支付通知
    public final static String NOTIFY_URL = "/miniprogram/pay/notify";

    //退款通知
    public final static String REFUND_NOTIFY = "/miniprogram/pay/refunds/notify";
    // 关闭订单
    public final static String CLOSE_PAY_ORDER_URL = "https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/%s/close";
    // 查询订单 (根据商户订单号查询)
    public final static String QUERY_PAY_RESULT_URL = "https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/%s";

    /**
     * 订单退款接口
     */
    public static final String ORDER_REFUND_URL = "https://api.mch.weixin.qq.com/v3/refund/domestic/refunds";

    /**
     * 查询单笔退款（通过商户退款单号）
     */
    public static final String SELECT_REFUND_URL = "https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/%s";
}
